% This is `graphic.tex' as of February 10, 1989 by Lutz Birkhahn
%
% Simply say `\input graphic' at the beginning of your file, and you may
% include graphics with `\includegraphic{<filename>}', where filename is
% the name of your IMG graphics file (<filename>.img) resp. the companion
% \TeX\ file (<filename>.tex).
%
% If you don't use IMGtoTEX, you have to write the \TeX\ file by yourself.
% The only two things you have to specify are the width and the height of
% the graphic: type `\grwd=<width>' and `\grht=<height>', where <width>
% and <height> are `dimen' values.
%
\newdimen\grwd \newdimen\grht
%
\def\includegraphic #1{%
 \input #1 % the companion \TeX\ file
 \setgraphic{#1}{\the\grwd}{\the\grht}%
 }
%
\def\setgraphic #1#2#3{%
 \hbox to #2{\vbox to #3{\vfil\special{graphic img #1.img}}\hfil}%
 }

